/**
 * Created by Roy on 16-11-29.
 */

export class Record{

}

function Decorator(func){
    return function(...args){
        function deco(target,name,desc){
            func(target,name,desc,...args);
        }
        if (args[2]&&args[2].enumerable!=null) return deco(...args);
        else return deco;
    }
}

export let PrimaryKey=Decorator((target,name,desc)=>{
    console.log(target);
});
export let PK=PrimaryKey;

export let AutoIncrement=Decorator((target,name,desc)=>{
    console.log(target);
});
export let AI=AutoIncrement;